//-----------------------------------------------------------------------
// <copyright file="CompanyBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class CompanyBase
	{
		
		#region Variable Declarations
		public static string _Table = "Company";
		private long				companyID = 0;
		private long				memberID = 0;
		private string				companyName = string.Empty;
		private long				country = 0;
		private string				zipCode = string.Empty;
		private string				logo = string.Empty;
		private string				address = string.Empty;
		private string				yearEstablishment = string.Empty;
		private string				primaryPro = string.Empty;
		private string				representativeName = string.Empty;
		private int				sexRep = 0;
		private string				jobTitleRep = string.Empty;
		private string				contactPerson = string.Empty;
		private string				jobTitleContact = string.Empty;
		private int				sexContact = 0;
		private string				phone = string.Empty;
		private string				fax = string.Empty;
		private string				email = string.Empty;
		private string				web = string.Empty;
		private long				proCateID = 0;
		private bool				buy = false;
		private bool				sell = false;
		private int				typeCompanyID = 0;
		private int				typeBusinessID = 0;
		private int				majorMarketID = 0;
		private string				registeredCapital = string.Empty;
		private string				turnover = string.Empty;
		private string				exportTurnover = string.Empty;
		private string				numberEmployees = string.Empty;
		private int				certificateID = 0;
		private string				capacity = string.Empty;
		private string				companyInfoHome = string.Empty;
		private string				other = string.Empty;
		#endregion
		
		#region Constructors
		public CompanyBase() {}
		
		public CompanyBase (
			long companyID,
			long memberID,
			string companyName,
			long country,
			string zipCode,
			string logo,
			string address,
			string yearEstablishment,
			string primaryPro,
			string representativeName,
			int sexRep,
			string jobTitleRep,
			string contactPerson,
			string jobTitleContact,
			int sexContact,
			string phone,
			string fax,
			string email,
			string web,
			long proCateID,
			bool buy,
			bool sell,
			int typeCompanyID,
			int typeBusinessID,
			int majorMarketID,
			string registeredCapital,
			string turnover,
			string exportTurnover,
			string numberEmployees,
			int certificateID,
			string capacity,
			string companyInfoHome,
			string other)
		
		{
			this.companyID = companyID;
			this.memberID = memberID;
			this.companyName = companyName;
			this.country = country;
			this.zipCode = zipCode;
			this.logo = logo;
			this.address = address;
			this.yearEstablishment = yearEstablishment;
			this.primaryPro = primaryPro;
			this.representativeName = representativeName;
			this.sexRep = sexRep;
			this.jobTitleRep = jobTitleRep;
			this.contactPerson = contactPerson;
			this.jobTitleContact = jobTitleContact;
			this.sexContact = sexContact;
			this.phone = phone;
			this.fax = fax;
			this.email = email;
			this.web = web;
			this.proCateID = proCateID;
			this.buy = buy;
			this.sell = sell;
			this.typeCompanyID = typeCompanyID;
			this.typeBusinessID = typeBusinessID;
			this.majorMarketID = majorMarketID;
			this.registeredCapital = registeredCapital;
			this.turnover = turnover;
			this.exportTurnover = exportTurnover;
			this.numberEmployees = numberEmployees;
			this.certificateID = certificateID;
			this.capacity = capacity;
			this.companyInfoHome = companyInfoHome;
			this.other = other;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long CompanyID
		{
			get { return companyID; }
			set { companyID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long MemberID
		{
			get { return memberID; }
			set { memberID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string CompanyName
		{
			get { return companyName; }
			set { companyName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long Country
		{
			get { return country; }
			set { country = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ZipCode
		{
			get { return zipCode; }
			set { zipCode = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Logo
		{
			get { return logo; }
			set { logo = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Address
		{
			get { return address; }
			set { address = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string YearEstablishment
		{
			get { return yearEstablishment; }
			set { yearEstablishment = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string PrimaryPro
		{
			get { return primaryPro; }
			set { primaryPro = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string RepresentativeName
		{
			get { return representativeName; }
			set { representativeName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SexRep
		{
			get { return sexRep; }
			set { sexRep = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string JobTitleRep
		{
			get { return jobTitleRep; }
			set { jobTitleRep = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ContactPerson
		{
			get { return contactPerson; }
			set { contactPerson = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string JobTitleContact
		{
			get { return jobTitleContact; }
			set { jobTitleContact = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int SexContact
		{
			get { return sexContact; }
			set { sexContact = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Phone
		{
			get { return phone; }
			set { phone = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Fax
		{
			get { return fax; }
			set { fax = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Email
		{
			get { return email; }
			set { email = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Web
		{
			get { return web; }
			set { web = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bigint</value>
		public long ProCateID
		{
			get { return proCateID; }
			set { proCateID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Buy
		{
			get { return buy; }
			set { buy = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is bit</value>
		public bool Sell
		{
			get { return sell; }
			set { sell = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int TypeCompanyID
		{
			get { return typeCompanyID; }
			set { typeCompanyID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int TypeBusinessID
		{
			get { return typeBusinessID; }
			set { typeBusinessID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int MajorMarketID
		{
			get { return majorMarketID; }
			set { majorMarketID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string RegisteredCapital
		{
			get { return registeredCapital; }
			set { registeredCapital = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Turnover
		{
			get { return turnover; }
			set { turnover = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ExportTurnover
		{
			get { return exportTurnover; }
			set { exportTurnover = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string NumberEmployees
		{
			get { return numberEmployees; }
			set { numberEmployees = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int CertificateID
		{
			get { return certificateID; }
			set { certificateID = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Capacity
		{
			get { return capacity; }
			set { capacity = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string CompanyInfoHome
		{
			get { return companyInfoHome; }
			set { companyInfoHome = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Other
		{
			get { return other; }
			set { other = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum CompanyColumns
	{
		CompanyID,
		MemberID,
		CompanyName,
		Country,
		ZipCode,
		Logo,
		Address,
		YearEstablishment,
		PrimaryPro,
		RepresentativeName,
		SexRep,
		JobTitleRep,
		ContactPerson,
		JobTitleContact,
		SexContact,
		Phone,
		Fax,
		Email,
		Web,
		ProCateID,
		Buy,
		Sell,
		TypeCompanyID,
		TypeBusinessID,
		MajorMarketID,
		RegisteredCapital,
		Turnover,
		ExportTurnover,
		NumberEmployees,
		CertificateID,
		Capacity,
		CompanyInfoHome,
		Other
	}//End enum
}